#!/bin/bash

# make zip archive with necessary files

date=$(date +%Y%m%d)

dir='php-xhtml-table'

if [ -d $dir ] ; then
	rm $dir/* -rf
else
	mkdir $dir
fi

cp CHANGELOG class.table.php gpl-3.0.txt INSTALL test.php $dir

zip -r ../php-xhtml-table-$date.zip $dir

rm $dir/* -rf
rmdir $dir

echo
echo file php-xhtml-table-$date.zip created